<template>
  <tab-bar>
    <tab-bar-item path="/home">
      <img slot="tab-bar-img" src="~assets/images/tabbar/home.png" class="tab-bar1" alt="">
      <img slot="tab-bar-active" src="~assets/images/tabbar/home_active.png" class="tab-bar2" alt="">
      <div slot="tab-bar-txt">首页</div>
    </tab-bar-item>
    <tab-bar-item path="/category">
      <img slot="tab-bar-img" src="~assets/images/tabbar/category.png" class="tab-bar1" alt="">
      <img slot="tab-bar-active" src="~assets/images/tabbar/category_active.png" class="tab-bar2" alt="">
      <div slot="tab-bar-txt">分类</div>
    </tab-bar-item>
    <tab-bar-item path="/cart">
      <img slot="tab-bar-img" src="~assets/images/tabbar/cart.png" alt="">
      <img slot="tab-bar-active" src="~assets/images/tabbar/cart_active.png" alt="">
      <div slot="tab-bar-txt">购物车</div>
    </tab-bar-item>
    <tab-bar-item path="/profile">
      <img slot="tab-bar-img" src="~assets/images/tabbar/profile.png" alt="">
      <img slot="tab-bar-active" src="~assets/images/tabbar/profile_active.png" alt="">
      <div slot="tab-bar-txt">我的</div>
    </tab-bar-item>
  </tab-bar>
</template>

<script>
  import TabBar from "components/common/tabbar/TabBar";
  import TabBarItem from "components/common/tabbar/TabBarItem";

  export default {
    name: "MainTabBarItem",
    components: {
      TabBarItem,
      TabBar,
    }
  }
</script>

<style scoped>
  .tab-bar img{
    width: 24px;
  }
</style>